#include "searchedit.h"

SearchEdit::SearchEdit(QWidget *parent) : KSearchLineEdit(parent)
{
    this->setFixedSize(200, 40);
    this->setClearButtonEnabled(true);
//    this->setPlaceholderText(tr("Search"));
    this->setFocusPolicy(Qt::ClickFocus);
    this->setContextMenuPolicy(Qt::DefaultContextMenu);
}

void SearchEdit::focusInEvent(QFocusEvent *event)
{
    Q_EMIT sigEditFocusIn();
    return QLineEdit::focusInEvent(event);
}

void SearchEdit::focusOutEvent(QFocusEvent *event)
{
    Q_EMIT sigEditFocusOut();
    return QLineEdit::focusOutEvent(event);
}
